<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        #box{
            width: 600px;
            height: 300px;
            margin: 20px 30px;
            display: flex;
            border: 1px solid #000;
            box-sizing: content-box;
            /* flex-direction: row-reverse; */
        }
        #box .son1{
            flex-grow: 2;
            background-color: purple;
        }
        #box .son2{
            flex-grow: 1;
        }
        #box .son2 .s1{
            background-color: skyblue;
            height: 30%;
        }
        #box .son2 .s2{
            background-color: pink;
            height: 30%;
        }
        #box .son2 .s3{
            background-color: gold;
            height: 40%;
        }
    </style>
</head>
<body>
    <div id="box">
        <div class="son1"></div>
        <div class="son2">
            <div class="s1"></div>
            <div class="s2"></div>
            <div class="s3"></div>
        </div>
    </div>  
</body>
<script>
// Currying后
function curryingAdd(x) {
    return function (y) {
        return x + y
    }
}
console.log(curryingAdd(1)(2));   // 3

</script>
</html>